//
//  im_define.h
//  SportSocial
//
//  Created by yull on 14/12/10.
//  Copyright (c) 2014年 yull. All rights reserved.
//

#ifndef SportSocial_im_define_h
#define SportSocial_im_define_h

#define HEART_TIME_INTERVAL 30

#define IM_PACKET_HEAD_LENGTH 4

#pragma mark - ProtocolId

#define USER_Login_Send_PID 3            //登陆发送
#define USER_Login_Receive_PID 1003      //登陆接收

#define USER_KICK_PID   1004        //用户被踢

#define Friend_List_Receive_PID 1031    //好友列表
#define Group_List_Receive_PID  1032    //群列表

#define Friend_Notify_Send_PID 24       //好友消息广播(发送)
#define Friend_Notify_Receive_PID 1033  //好友消息广播(接收)

#define Friend_OffLine_Send_PID 22      //离线好友消息(发送)
#define Friend_RecMsg_Receive_PID 1027  //收到消息(离线或正常接收)
#define Friend_Ack_Send_PID 18          //私聊消息确认
#define Friend_SendMsg_Send_PID 17      //发送私聊消息
#define Friend_SendMsg_Receive_PID 1026 //私聊发送返回结果

#define Group_Notify_Send_PID 25        //群消息广播(发送)
#define Group_Notify_Receive_PID 1034   //群消息广播(接收)
#define Group_Notice_Receive_PID 1035   //群消息提醒

#define Group_OffLine_Send_PID 23       //离线群消息(发送)
#define Group_RecMsg_Receive_PID 1030   //群聊发送返回结果
#define Group_SendMsg_Send_PID 19       //发送群聊消息
#define Group_SendMsg_Receive_PID 1029  //收到群消息(离线或正常接收)
#define Group_Ack_Send_PID  20          //群聊消息确认
#define Group_Send_Notify_PID 26        //发送群提醒  用于确定客户端是否收到群广播提醒

#define IM_SEND_HEART_BEAT    27        //心跳包命令

#define IM_ERROR_PID 1001   //错误信息

#endif
